
Obj/FWlib_apt32f172_cmp.o:     file format elf32-csky-little


Disassembly of section .text:

00000000 <CMP_RESET_VALUE>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/  
void CMP_RESET_VALUE(void)
{
		CMP->CEDR=CMP_CEDR_RST;     			/**< CMP_CEDR  reset value  */
   0:	106f      	lrw      	r3, 0	// 3c <CMP_RESET_VALUE+0x3c>
   2:	1050      	lrw      	r2, 0x2090000	// 40 <CMP_RESET_VALUE+0x40>
   4:	9360      	ld.w      	r3, (r3, 0)
   6:	b340      	st.w      	r2, (r3, 0)
		CMP->CR0=CMP_CR0_RST;     				/**< CMP_CR0  reset value  	*/
   8:	3240      	movi      	r2, 64
   a:	b341      	st.w      	r2, (r3, 0x4)
		CMP->CR1=CMP_CR1_RST;					/**< CMP_CR1  reset value  	*/
   c:	b342      	st.w      	r2, (r3, 0x8)
		CMP->CR2=CMP_CR2_RST;     				/**< CMP_CR2  reset value  	*/
   e:	b343      	st.w      	r2, (r3, 0xc)
		CMP->CR3=CMP_CR3_RST;     				/**< CMP_CR3  reset value  	*/
  10:	b344      	st.w      	r2, (r3, 0x10)
		CMP->CR4=CMP_CR4_RST;     				/**< CMP_CR4  reset value  	*/
  12:	b345      	st.w      	r2, (r3, 0x14)
		CMP->FLTCR0=CMP_FLTCR0_RST;     		/**< CMP_FLTCR0  reset value*/
  14:	3200      	movi      	r2, 0
  16:	b346      	st.w      	r2, (r3, 0x18)
		CMP->FLTCR1=CMP_FLTCR1_RST;     		/**< CMP_FLTCR1  reset value*/
  18:	b347      	st.w      	r2, (r3, 0x1c)
		CMP->FLTCR2=CMP_FLTCR2_RST;     		/**< CMP_FLTCR2  reset value*/
  1a:	b348      	st.w      	r2, (r3, 0x20)
		CMP->FLTCR3=CMP_FLTCR3_RST;     		/**< CMP_FLTCR3  reset value*/
  1c:	b349      	st.w      	r2, (r3, 0x24)
		CMP->FLTCR4=CMP_FLTCR4_RST;     		/**< CMP_FLTCR4  reset value*/
  1e:	b34a      	st.w      	r2, (r3, 0x28)
		CMP->WCNT0=CMP_WCNT0_RST;				/**< CMP_WCNT0   reset value*/
  20:	b34b      	st.w      	r2, (r3, 0x2c)
		CMP->WCNT1=CMP_WCNT1_RST;				/**< CMP_WCNT1   reset value*/
  22:	b34c      	st.w      	r2, (r3, 0x30)
		CMP->WCNT2=CMP_WCNT2_RST;				/**< CMP_WCNT2   reset value*/
  24:	b34d      	st.w      	r2, (r3, 0x34)
		CMP->INPCR0=CMP_INPCR0_RST;				/**< CMP_INPCR0  reset value*/
  26:	b34e      	st.w      	r2, (r3, 0x38)
		CMP->INPCR1=CMP_INPCR1_RST;				/**< CMP_INPCR1  reset value*/
  28:	b34f      	st.w      	r2, (r3, 0x3c)
		CMP->INPCR2=CMP_INPCR2_RST;				/**< CMP_INPCR2  reset value*/
  2a:	b350      	st.w      	r2, (r3, 0x40)
		CMP->INPCR3=CMP_INPCR3_RST;				/**< CMP_INPCR3  reset value*/
  2c:	b351      	st.w      	r2, (r3, 0x44)
		CMP->INPCR4=CMP_INPCR4_RST;				/**< CMP_INPCR4  reset value*/
  2e:	b352      	st.w      	r2, (r3, 0x48)
		CMP->TRGCR=CMP_TRGCR_RST;				/**< CMP_TRGCR   reset value*/	
  30:	b353      	st.w      	r2, (r3, 0x4c)
		CMP->IMCR=CMP_IMCR_RST;					/**< CMP_IMCR    reset value*/	
  32:	b354      	st.w      	r2, (r3, 0x50)
		CMP->RISR=CMP_RISR_RST;					/**< CMP_RISR    reset value*/	
  34:	b355      	st.w      	r2, (r3, 0x54)
		CMP->MISR=CMP_MISR_RST;					/**< CMP_MISR    reset value*/	
  36:	b356      	st.w      	r2, (r3, 0x58)
		CMP->ICR=CMP_ICR_RST;					/**< CMP_ICR     reset value*/	
  38:	b357      	st.w      	r2, (r3, 0x5c)
}
  3a:	783c      	rts
  3c:	00000000 	.long	0x00000000
  40:	02090000 	.long	0x02090000

00000044 <CMP_software_reset>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/  
void CMP_software_reset(void)
{
	CMP->CEDR|=(0X01<<7);
  44:	127d      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
  46:	9340      	ld.w      	r2, (r3, 0)
  48:	9260      	ld.w      	r3, (r2, 0)
  4a:	3ba7      	bseti      	r3, r3, 7
  4c:	b260      	st.w      	r3, (r2, 0)
}
  4e:	783c      	rts

00000050 <CMP_CLK_CMD>:
//NewState:ENABLE,DISABLE
//ReturnValue:NONE
/*************************************************************/  
void CMP_CLK_CMD(CMPx_selecte_TypeDef CMPx_NUM , FunctionalStatus NewState)
{
	if(CMPx_NUM==CMP0_NUM)
  50:	3840      	cmpnei      	r0, 0
  52:	080b      	bt      	0x68	// 68 <CMP_CLK_CMD+0x18>
  54:	1279      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
	{
		if(NewState != DISABLE)
  56:	3940      	cmpnei      	r1, 0
		{
			CMP->CEDR|=0X01;
  58:	9340      	ld.w      	r2, (r3, 0)
  5a:	9260      	ld.w      	r3, (r2, 0)
		if(NewState != DISABLE)
  5c:	0c04      	bf      	0x64	// 64 <CMP_CLK_CMD+0x14>
			CMP->CEDR|=0X01;
  5e:	3ba0      	bseti      	r3, r3, 0
		{
			CMP->CEDR|=0X10;
		}
		else
		{
			CMP->CEDR&=0XFFFFFFEF;
  60:	b260      	st.w      	r3, (r2, 0)
		}
	}
}
  62:	783c      	rts
			CMP->CEDR&=0XFFFFFFFE;
  64:	3b80      	bclri      	r3, r3, 0
  66:	07fd      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
	else if(CMPx_NUM==CMP1_NUM)
  68:	3841      	cmpnei      	r0, 1
  6a:	080a      	bt      	0x7e	// 7e <CMP_CLK_CMD+0x2e>
  6c:	1273      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
		if(NewState != DISABLE)
  6e:	3940      	cmpnei      	r1, 0
			CMP->CEDR|=0X02;
  70:	9340      	ld.w      	r2, (r3, 0)
  72:	9260      	ld.w      	r3, (r2, 0)
		if(NewState != DISABLE)
  74:	0c03      	bf      	0x7a	// 7a <CMP_CLK_CMD+0x2a>
			CMP->CEDR|=0X02;
  76:	3ba1      	bseti      	r3, r3, 1
  78:	07f4      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
			CMP->CEDR&=0XFFFFFFFD;
  7a:	3b81      	bclri      	r3, r3, 1
  7c:	07f2      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
	else if(CMPx_NUM==CMP2_NUM)
  7e:	3842      	cmpnei      	r0, 2
  80:	080a      	bt      	0x94	// 94 <CMP_CLK_CMD+0x44>
  82:	126e      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
		if(NewState != DISABLE)
  84:	3940      	cmpnei      	r1, 0
			CMP->CEDR|=0X04;
  86:	9340      	ld.w      	r2, (r3, 0)
  88:	9260      	ld.w      	r3, (r2, 0)
		if(NewState != DISABLE)
  8a:	0c03      	bf      	0x90	// 90 <CMP_CLK_CMD+0x40>
			CMP->CEDR|=0X04;
  8c:	3ba2      	bseti      	r3, r3, 2
  8e:	07e9      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
			CMP->CEDR&=0XFFFFFFFB;
  90:	3b82      	bclri      	r3, r3, 2
  92:	07e7      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
	else if(CMPx_NUM==CMP3_NUM)
  94:	3843      	cmpnei      	r0, 3
  96:	080a      	bt      	0xaa	// aa <CMP_CLK_CMD+0x5a>
  98:	1268      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
		if(NewState != DISABLE)
  9a:	3940      	cmpnei      	r1, 0
			CMP->CEDR|=0X8;
  9c:	9340      	ld.w      	r2, (r3, 0)
  9e:	9260      	ld.w      	r3, (r2, 0)
		if(NewState != DISABLE)
  a0:	0c03      	bf      	0xa6	// a6 <CMP_CLK_CMD+0x56>
			CMP->CEDR|=0X8;
  a2:	3ba3      	bseti      	r3, r3, 3
  a4:	07de      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
			CMP->CEDR&=0XFFFFFFF7;
  a6:	3b83      	bclri      	r3, r3, 3
  a8:	07dc      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
	else if(CMPx_NUM==CMP4_NUM)
  aa:	3844      	cmpnei      	r0, 4
  ac:	0bdb      	bt      	0x62	// 62 <CMP_CLK_CMD+0x12>
  ae:	1263      	lrw      	r3, 0	// 1b8 <CMP_IO_Init+0xf8>
		if(NewState != DISABLE)
  b0:	3940      	cmpnei      	r1, 0
			CMP->CEDR|=0X10;
  b2:	9340      	ld.w      	r2, (r3, 0)
  b4:	9260      	ld.w      	r3, (r2, 0)
		if(NewState != DISABLE)
  b6:	0c03      	bf      	0xbc	// bc <CMP_CLK_CMD+0x6c>
			CMP->CEDR|=0X10;
  b8:	3ba4      	bseti      	r3, r3, 4
  ba:	07d3      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>
			CMP->CEDR&=0XFFFFFFEF;
  bc:	3b84      	bclri      	r3, r3, 4
  be:	07d1      	br      	0x60	// 60 <CMP_CLK_CMD+0x10>

000000c0 <CMP_IO_Init>:
//CMP_IO_MODE_X:0~1
//ReturnValue:NONE
/*************************************************************/  
void CMP_IO_Init(CMP_IO_MODE_TypeDef  CMP_IO_MODE_X , U8_T CMP_IO_G )
{
	if(CMP_IO_MODE_X==CPINP0)
  c0:	3840      	cmpnei      	r0, 0
  c2:	080b      	bt      	0xd8	// d8 <CMP_IO_Init+0x18>
	{
		if(CMP_IO_G==0)
  c4:	3940      	cmpnei      	r1, 0
  c6:	0849      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
		{
			GPIOB0->CONLR=(GPIOB0->CONLR & 0XFFFFFFF0)|0x0000000A;										//CPINP0(PB0.00->AF7)
  c8:	117d      	lrw      	r3, 0	// 1bc <CMP_IO_Init+0xfc>
	}
	else if(CMP_IO_MODE_X==CPINN1)
	{
		if(CMP_IO_G==0)
		{
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFFFFFFF0)|0x0000000A;										//CPINN1(PA0.00->AF7)
  ca:	9340      	ld.w      	r2, (r3, 0)
  cc:	9260      	ld.w      	r3, (r2, 0)
  ce:	310f      	movi      	r1, 15
  d0:	68c5      	andn      	r3, r1
  d2:	3ba1      	bseti      	r3, r3, 1
  d4:	3ba3      	bseti      	r3, r3, 3
  d6:	0427      	br      	0x124	// 124 <CMP_IO_Init+0x64>
	else if(CMP_IO_MODE_X==CPINP1)
  d8:	3841      	cmpnei      	r0, 1
  da:	080c      	bt      	0xf2	// f2 <CMP_IO_Init+0x32>
		if(CMP_IO_G==0)
  dc:	3940      	cmpnei      	r1, 0
  de:	083d      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFF0FFFFF)|0x00A00000;										//CPINP1(PA0.05->AF7)
  e0:	1178      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
			GPIOA1->CONLR=(GPIOA1->CONLR & 0XFF0FFFFF)|0x00A00000;										//CPINP9(PA1.5->AF7)
  e2:	9320      	ld.w      	r1, (r3, 0)
  e4:	32f0      	movi      	r2, 240
  e6:	9160      	ld.w      	r3, (r1, 0)
  e8:	4250      	lsli      	r2, r2, 16
  ea:	68c9      	andn      	r3, r2
  ec:	3bb5      	bseti      	r3, r3, 21
  ee:	3bb7      	bseti      	r3, r3, 23
  f0:	040d      	br      	0x10a	// 10a <CMP_IO_Init+0x4a>
	else if(CMP_IO_MODE_X==CPINP2)
  f2:	3842      	cmpnei      	r0, 2
  f4:	080d      	bt      	0x10e	// 10e <CMP_IO_Init+0x4e>
		if(CMP_IO_G==0)
  f6:	3940      	cmpnei      	r1, 0
  f8:	0830      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XF0FFFFFF)|0x0A000000;										//CPINP2(PA0.06->AF7)
  fa:	1172      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
  fc:	32f0      	movi      	r2, 240
  fe:	9320      	ld.w      	r1, (r3, 0)
 100:	9160      	ld.w      	r3, (r1, 0)
 102:	4254      	lsli      	r2, r2, 20
 104:	68c9      	andn      	r3, r2
 106:	3bb9      	bseti      	r3, r3, 25
 108:	3bbb      	bseti      	r3, r3, 27
	}
	else if(CMP_IO_MODE_X==CP3_OUT)
	{
		if(CMP_IO_G==0)
		{
			GPIOA1->CONLR=(GPIOA1->CONLR & 0XFFF0FFFF)|0x00060000;										//CP3_OUT(PA1.4->AF3)
 10a:	b160      	st.w      	r3, (r1, 0)
 10c:	0426      	br      	0x158	// 158 <CMP_IO_Init+0x98>
	else if(CMP_IO_MODE_X==CPINP3)
 10e:	3843      	cmpnei      	r0, 3
 110:	080c      	bt      	0x128	// 128 <CMP_IO_Init+0x68>
		if(CMP_IO_G==0)
 112:	3940      	cmpnei      	r1, 0
 114:	0822      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0X0FFFFFFF)|0xA0000000;										//CPINP3(PA0.07->AF7)
 116:	116b      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
 118:	9340      	ld.w      	r2, (r3, 0)
 11a:	9260      	ld.w      	r3, (r2, 0)
 11c:	4364      	lsli      	r3, r3, 4
 11e:	4b64      	lsri      	r3, r3, 4
 120:	3bbd      	bseti      	r3, r3, 29
 122:	3bbf      	bseti      	r3, r3, 31
	}
	else if(CMP_IO_MODE_X==CP4_OUT)
	{
		if(CMP_IO_G==0)
		{
			GPIOC0->CONLR=(GPIOC0->CONLR & 0XFFFFFFF0)|0x00000007;										//CP4_OUT(PC0.0->AF4)
 124:	b260      	st.w      	r3, (r2, 0)
		}
	}
}
 126:	0419      	br      	0x158	// 158 <CMP_IO_Init+0x98>
	else if(CMP_IO_MODE_X==CPINP4)
 128:	3844      	cmpnei      	r0, 4
 12a:	080b      	bt      	0x140	// 140 <CMP_IO_Init+0x80>
		if(CMP_IO_G==0)
 12c:	3940      	cmpnei      	r1, 0
 12e:	0815      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XFFFFFFF0)|0x0000000A;										//CPINN2(PA0.08->AF7)
 130:	1164      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
 132:	310f      	movi      	r1, 15
 134:	9340      	ld.w      	r2, (r3, 0)
 136:	9261      	ld.w      	r3, (r2, 0x4)
 138:	68c5      	andn      	r3, r1
 13a:	3ba1      	bseti      	r3, r3, 1
 13c:	3ba3      	bseti      	r3, r3, 3
 13e:	040c      	br      	0x156	// 156 <CMP_IO_Init+0x96>
	else if(CMP_IO_MODE_X==CPINP5)
 140:	3845      	cmpnei      	r0, 5
 142:	080c      	bt      	0x15a	// 15a <CMP_IO_Init+0x9a>
		if(CMP_IO_G==0)
 144:	3940      	cmpnei      	r1, 0
 146:	0809      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XFFFFFF0F)|0x000000A0;										//CPINP5(PA0.09->AF7)
 148:	107e      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
 14a:	31f0      	movi      	r1, 240
 14c:	9340      	ld.w      	r2, (r3, 0)
 14e:	9261      	ld.w      	r3, (r2, 0x4)
 150:	68c5      	andn      	r3, r1
 152:	3ba5      	bseti      	r3, r3, 5
 154:	3ba7      	bseti      	r3, r3, 7
 156:	b261      	st.w      	r3, (r2, 0x4)
}
 158:	783c      	rts
	else if(CMP_IO_MODE_X==CPINP6)
 15a:	3846      	cmpnei      	r0, 6
 15c:	080d      	bt      	0x176	// 176 <CMP_IO_Init+0xb6>
		if(CMP_IO_G==0)
 15e:	3940      	cmpnei      	r1, 0
 160:	0bfc      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XFFF0FFFF)|0x000A0000;										//CPINP6(PA0.12->AF7)
 162:	1078      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
 164:	32f0      	movi      	r2, 240
 166:	9320      	ld.w      	r1, (r3, 0)
 168:	9161      	ld.w      	r3, (r1, 0x4)
 16a:	424c      	lsli      	r2, r2, 12
 16c:	68c9      	andn      	r3, r2
 16e:	3bb1      	bseti      	r3, r3, 17
 170:	3bb3      	bseti      	r3, r3, 19
			GPIOA0->CONHR=(GPIOA0->CONHR & 0X0FFFFFFF)|0x70000000;										//CP2_OUT(PA0.15->AF4)
 172:	b161      	st.w      	r3, (r1, 0x4)
 174:	07f2      	br      	0x158	// 158 <CMP_IO_Init+0x98>
	else if(CMP_IO_MODE_X==CPINP7)
 176:	3847      	cmpnei      	r0, 7
 178:	080c      	bt      	0x190	// 190 <CMP_IO_Init+0xd0>
		if(CMP_IO_G==0)
 17a:	3940      	cmpnei      	r1, 0
 17c:	0bee      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XF0FFFFFF)|0x0A000000;										//CPINP7(PA0.14->AF7)
 17e:	1071      	lrw      	r3, 0	// 1c0 <CMP_IO_Init+0x100>
 180:	32f0      	movi      	r2, 240
 182:	9320      	ld.w      	r1, (r3, 0)
 184:	9161      	ld.w      	r3, (r1, 0x4)
 186:	4254      	lsli      	r2, r2, 20
 188:	68c9      	andn      	r3, r2
 18a:	3bb9      	bseti      	r3, r3, 25
 18c:	3bbb      	bseti      	r3, r3, 27
 18e:	07f2      	br      	0x172	// 172 <CMP_IO_Init+0xb2>
	else if(CMP_IO_MODE_X==CPINP8)
 190:	3848      	cmpnei      	r0, 8
 192:	080c      	bt      	0x1aa	// 1aa <CMP_IO_Init+0xea>
		if(CMP_IO_G==0)
 194:	3940      	cmpnei      	r1, 0
 196:	0be1      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA1->CONLR=(GPIOA1->CONLR & 0XFFF0FFFF)|0x000A0000;										//CPINP8(PA1.4->AF7)
 198:	106b      	lrw      	r3, 0	// 1c4 <CMP_IO_Init+0x104>
 19a:	32f0      	movi      	r2, 240
 19c:	9320      	ld.w      	r1, (r3, 0)
 19e:	9160      	ld.w      	r3, (r1, 0)
 1a0:	424c      	lsli      	r2, r2, 12
 1a2:	68c9      	andn      	r3, r2
 1a4:	3bb1      	bseti      	r3, r3, 17
 1a6:	3bb3      	bseti      	r3, r3, 19
 1a8:	07b1      	br      	0x10a	// 10a <CMP_IO_Init+0x4a>
	else if(CMP_IO_MODE_X==CPINP9)
 1aa:	3849      	cmpnei      	r0, 9
 1ac:	080e      	bt      	0x1c8	// 1c8 <CMP_IO_Init+0x108>
		if(CMP_IO_G==0)
 1ae:	3940      	cmpnei      	r1, 0
 1b0:	0bd4      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA1->CONLR=(GPIOA1->CONLR & 0XFF0FFFFF)|0x00A00000;										//CPINP9(PA1.5->AF7)
 1b2:	1065      	lrw      	r3, 0	// 1c4 <CMP_IO_Init+0x104>
 1b4:	0797      	br      	0xe2	// e2 <CMP_IO_Init+0x22>
	...
 1c6:	0000      	.short	0x0000
	else if(CMP_IO_MODE_X==CPINN0)
 1c8:	384a      	cmpnei      	r0, 10
 1ca:	080b      	bt      	0x1e0	// 1e0 <CMP_IO_Init+0x120>
		if(CMP_IO_G==0)
 1cc:	3940      	cmpnei      	r1, 0
 1ce:	0bc5      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOB0->CONLR=(GPIOB0->CONLR & 0XFFFFFF0F)|0x000000A0;										//CPINN0(PB0.01->AF7)
 1d0:	1361      	lrw      	r3, 0	// 354 <CMP_CR_Config+0x4>
 1d2:	31f0      	movi      	r1, 240
 1d4:	9340      	ld.w      	r2, (r3, 0)
 1d6:	9260      	ld.w      	r3, (r2, 0)
 1d8:	68c5      	andn      	r3, r1
 1da:	3ba5      	bseti      	r3, r3, 5
 1dc:	3ba7      	bseti      	r3, r3, 7
 1de:	07a3      	br      	0x124	// 124 <CMP_IO_Init+0x64>
	else if(CMP_IO_MODE_X==CPINN1)
 1e0:	384b      	cmpnei      	r0, 11
 1e2:	0805      	bt      	0x1ec	// 1ec <CMP_IO_Init+0x12c>
		if(CMP_IO_G==0)
 1e4:	3940      	cmpnei      	r1, 0
 1e6:	0bb9      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFFFFFFF0)|0x0000000A;										//CPINN1(PA0.00->AF7)
 1e8:	127c      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 1ea:	0770      	br      	0xca	// ca <CMP_IO_Init+0xa>
	else if(CMP_IO_MODE_X==CPINN2)
 1ec:	384c      	cmpnei      	r0, 12
 1ee:	0f9f      	bf      	0x12c	// 12c <CMP_IO_Init+0x6c>
	else if(CMP_IO_MODE_X==CPINN3)
 1f0:	384d      	cmpnei      	r0, 13
 1f2:	080c      	bt      	0x20a	// 20a <CMP_IO_Init+0x14a>
		if(CMP_IO_G==0)
 1f4:	3940      	cmpnei      	r1, 0
 1f6:	0bb1      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XFFFFF0FF)|0x00000A00;										//CPINN3(PA0.10->AF7)
 1f8:	1278      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 1fa:	32f0      	movi      	r2, 240
 1fc:	9320      	ld.w      	r1, (r3, 0)
 1fe:	9161      	ld.w      	r3, (r1, 0x4)
 200:	4244      	lsli      	r2, r2, 4
 202:	68c9      	andn      	r3, r2
 204:	3ba9      	bseti      	r3, r3, 9
 206:	3bab      	bseti      	r3, r3, 11
 208:	07b5      	br      	0x172	// 172 <CMP_IO_Init+0xb2>
	else if(CMP_IO_MODE_X==CPINN4)
 20a:	384e      	cmpnei      	r0, 14
 20c:	080c      	bt      	0x224	// 224 <CMP_IO_Init+0x164>
		if(CMP_IO_G==0)
 20e:	3940      	cmpnei      	r1, 0
 210:	0ba4      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0XFF0FFFFF)|0x00A00000;										//CPINN4(PA0.13->AF7)
 212:	1272      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 214:	32f0      	movi      	r2, 240
 216:	9320      	ld.w      	r1, (r3, 0)
 218:	9161      	ld.w      	r3, (r1, 0x4)
 21a:	4250      	lsli      	r2, r2, 16
 21c:	68c9      	andn      	r3, r2
 21e:	3bb5      	bseti      	r3, r3, 21
 220:	3bb7      	bseti      	r3, r3, 23
 222:	07a8      	br      	0x172	// 172 <CMP_IO_Init+0xb2>
	else if(CMP_IO_MODE_X==CP0_OUT)
 224:	384f      	cmpnei      	r0, 15
 226:	0813      	bt      	0x24c	// 24c <CMP_IO_Init+0x18c>
		if(CMP_IO_G==0)
 228:	3940      	cmpnei      	r1, 0
 22a:	0807      	bt      	0x238	// 238 <CMP_IO_Init+0x178>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFFFFFFF0)|0x00000007;										//CP0_OUT(PA0.0->AF4)
 22c:	126b      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 22e:	9340      	ld.w      	r2, (r3, 0)
 230:	9260      	ld.w      	r3, (r2, 0)
 232:	68c1      	andn      	r3, r0
			GPIOC0->CONLR=(GPIOC0->CONLR & 0XFFFFFFF0)|0x00000007;										//CP4_OUT(PC0.0->AF4)
 234:	3107      	movi      	r1, 7
 236:	0415      	br      	0x260	// 260 <CMP_IO_Init+0x1a0>
		else if(CMP_IO_G==1)
 238:	3941      	cmpnei      	r1, 1
 23a:	0b8f      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFFFFFF0F)|0x00000060;										//CP0_OUT(PA0.1->AF3)
 23c:	1267      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 23e:	31f0      	movi      	r1, 240
 240:	9340      	ld.w      	r2, (r3, 0)
 242:	9260      	ld.w      	r3, (r2, 0)
 244:	68c5      	andn      	r3, r1
 246:	3ba5      	bseti      	r3, r3, 5
 248:	3ba6      	bseti      	r3, r3, 6
 24a:	076d      	br      	0x124	// 124 <CMP_IO_Init+0x64>
	else if(CMP_IO_MODE_X==CP1_OUT)
 24c:	3850      	cmpnei      	r0, 16
 24e:	080b      	bt      	0x264	// 264 <CMP_IO_Init+0x1a4>
		if(CMP_IO_G==0)
 250:	3940      	cmpnei      	r1, 0
 252:	0b83      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONLR=(GPIOA0->CONLR & 0XFFFFFF0F)|0x00000070;										//CP1_OUT(PA0.1->AF4)
 254:	1261      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 256:	31f0      	movi      	r1, 240
 258:	9340      	ld.w      	r2, (r3, 0)
 25a:	9260      	ld.w      	r3, (r2, 0)
 25c:	68c5      	andn      	r3, r1
 25e:	3170      	movi      	r1, 112
			GPIOC0->CONLR=(GPIOC0->CONLR & 0XFFFFFFF0)|0x00000007;										//CP4_OUT(PC0.0->AF4)
 260:	6cc4      	or      	r3, r1
 262:	0761      	br      	0x124	// 124 <CMP_IO_Init+0x64>
	else if(CMP_IO_MODE_X==CP2_OUT)
 264:	3851      	cmpnei      	r0, 17
 266:	080c      	bt      	0x27e	// 27e <CMP_IO_Init+0x1be>
		if(CMP_IO_G==0)
 268:	3940      	cmpnei      	r1, 0
 26a:	0b77      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA0->CONHR=(GPIOA0->CONHR & 0X0FFFFFFF)|0x70000000;										//CP2_OUT(PA0.15->AF4)
 26c:	117b      	lrw      	r3, 0	// 358 <CMP_CR_Config+0x8>
 26e:	32e0      	movi      	r2, 224
 270:	9320      	ld.w      	r1, (r3, 0)
 272:	9161      	ld.w      	r3, (r1, 0x4)
 274:	4364      	lsli      	r3, r3, 4
 276:	4b64      	lsri      	r3, r3, 4
 278:	4257      	lsli      	r2, r2, 23
 27a:	6cc8      	or      	r3, r2
 27c:	077b      	br      	0x172	// 172 <CMP_IO_Init+0xb2>
	else if(CMP_IO_MODE_X==CP3_OUT)
 27e:	3852      	cmpnei      	r0, 18
 280:	080c      	bt      	0x298	// 298 <CMP_IO_Init+0x1d8>
		if(CMP_IO_G==0)
 282:	3940      	cmpnei      	r1, 0
 284:	0b6a      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOA1->CONLR=(GPIOA1->CONLR & 0XFFF0FFFF)|0x00060000;										//CP3_OUT(PA1.4->AF3)
 286:	1176      	lrw      	r3, 0	// 35c <CMP_CR_Config+0xc>
 288:	32f0      	movi      	r2, 240
 28a:	9320      	ld.w      	r1, (r3, 0)
 28c:	9160      	ld.w      	r3, (r1, 0)
 28e:	424c      	lsli      	r2, r2, 12
 290:	68c9      	andn      	r3, r2
 292:	3bb1      	bseti      	r3, r3, 17
 294:	3bb2      	bseti      	r3, r3, 18
 296:	073a      	br      	0x10a	// 10a <CMP_IO_Init+0x4a>
	else if(CMP_IO_MODE_X==CP4_OUT)
 298:	3853      	cmpnei      	r0, 19
 29a:	0b5f      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
		if(CMP_IO_G==0)
 29c:	3940      	cmpnei      	r1, 0
 29e:	0b5d      	bt      	0x158	// 158 <CMP_IO_Init+0x98>
			GPIOC0->CONLR=(GPIOC0->CONLR & 0XFFFFFFF0)|0x00000007;										//CP4_OUT(PC0.0->AF4)
 2a0:	1170      	lrw      	r3, 0	// 360 <CMP_CR_Config+0x10>
 2a2:	310f      	movi      	r1, 15
 2a4:	9340      	ld.w      	r2, (r3, 0)
 2a6:	9260      	ld.w      	r3, (r2, 0)
 2a8:	68c5      	andn      	r3, r1
 2aa:	07c5      	br      	0x234	// 234 <CMP_IO_Init+0x174>

000002ac <CMP_INPCRX_Config>:
//9:CPINP9
//13:OPA1X
//14:OPA0X
//-------------------------------------
void CMP_INPCRX_Config(CMPx_selecte_TypeDef CMPx_NUM , U8_T CMPX_NSEL , U8_T CMPX_PSEL )
{
 2ac:	14c1      	push      	r4
	if(CMPx_NUM==CMP0_NUM)
 2ae:	3840      	cmpnei      	r0, 0
 2b0:	080d      	bt      	0x2ca	// 2ca <CMP_INPCRX_Config+0x1e>
	{
		CMP->INPCR0&=0xfffff000;
 2b2:	116d      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 2b4:	118d      	lrw      	r4, 0xfff	// 368 <CMP_CR_Config+0x18>
 2b6:	9360      	ld.w      	r3, (r3, 0)
 2b8:	930e      	ld.w      	r0, (r3, 0x38)
 2ba:	6811      	andn      	r0, r4
 2bc:	b30e      	st.w      	r0, (r3, 0x38)
		CMP->INPCR0|=CMPX_NSEL|(CMPX_PSEL<<8);
 2be:	4248      	lsli      	r2, r2, 8
 2c0:	930e      	ld.w      	r0, (r3, 0x38)
 2c2:	6c84      	or      	r2, r1
 2c4:	6c80      	or      	r2, r0
 2c6:	b34e      	st.w      	r2, (r3, 0x38)
	else if(CMPx_NUM==CMP4_NUM)
	{
		CMP->INPCR4&=0xfffff000;
		CMP->INPCR4|=CMPX_NSEL|(CMPX_PSEL<<8);
	}
}
 2c8:	1481      	pop      	r4
	else if(CMPx_NUM==CMP1_NUM)
 2ca:	3841      	cmpnei      	r0, 1
 2cc:	080d      	bt      	0x2e6	// 2e6 <CMP_INPCRX_Config+0x3a>
		CMP->INPCR1&=0xfffff000;
 2ce:	1166      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 2d0:	1186      	lrw      	r4, 0xfff	// 368 <CMP_CR_Config+0x18>
 2d2:	9360      	ld.w      	r3, (r3, 0)
 2d4:	930f      	ld.w      	r0, (r3, 0x3c)
 2d6:	6811      	andn      	r0, r4
 2d8:	b30f      	st.w      	r0, (r3, 0x3c)
		CMP->INPCR1|=CMPX_NSEL|(CMPX_PSEL<<8);
 2da:	4248      	lsli      	r2, r2, 8
 2dc:	930f      	ld.w      	r0, (r3, 0x3c)
 2de:	6c84      	or      	r2, r1
 2e0:	6c80      	or      	r2, r0
 2e2:	b34f      	st.w      	r2, (r3, 0x3c)
 2e4:	07f2      	br      	0x2c8	// 2c8 <CMP_INPCRX_Config+0x1c>
	else if(CMPx_NUM==CMP2_NUM)
 2e6:	3842      	cmpnei      	r0, 2
 2e8:	080d      	bt      	0x302	// 302 <CMP_INPCRX_Config+0x56>
		CMP->INPCR2&=0xfffff000;
 2ea:	107f      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 2ec:	109f      	lrw      	r4, 0xfff	// 368 <CMP_CR_Config+0x18>
 2ee:	9360      	ld.w      	r3, (r3, 0)
 2f0:	9310      	ld.w      	r0, (r3, 0x40)
 2f2:	6811      	andn      	r0, r4
 2f4:	b310      	st.w      	r0, (r3, 0x40)
		CMP->INPCR2|=CMPX_NSEL|(CMPX_PSEL<<8);
 2f6:	4248      	lsli      	r2, r2, 8
 2f8:	9310      	ld.w      	r0, (r3, 0x40)
 2fa:	6c84      	or      	r2, r1
 2fc:	6c80      	or      	r2, r0
 2fe:	b350      	st.w      	r2, (r3, 0x40)
 300:	07e4      	br      	0x2c8	// 2c8 <CMP_INPCRX_Config+0x1c>
	else if(CMPx_NUM==CMP3_NUM)
 302:	3843      	cmpnei      	r0, 3
 304:	080d      	bt      	0x31e	// 31e <CMP_INPCRX_Config+0x72>
		CMP->INPCR3&=0xfffff000;
 306:	1078      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 308:	1098      	lrw      	r4, 0xfff	// 368 <CMP_CR_Config+0x18>
 30a:	9360      	ld.w      	r3, (r3, 0)
 30c:	9311      	ld.w      	r0, (r3, 0x44)
 30e:	6811      	andn      	r0, r4
 310:	b311      	st.w      	r0, (r3, 0x44)
		CMP->INPCR3|=CMPX_NSEL|(CMPX_PSEL<<8);
 312:	4248      	lsli      	r2, r2, 8
 314:	9311      	ld.w      	r0, (r3, 0x44)
 316:	6c84      	or      	r2, r1
 318:	6c80      	or      	r2, r0
 31a:	b351      	st.w      	r2, (r3, 0x44)
 31c:	07d6      	br      	0x2c8	// 2c8 <CMP_INPCRX_Config+0x1c>
	else if(CMPx_NUM==CMP4_NUM)
 31e:	3844      	cmpnei      	r0, 4
 320:	0bd4      	bt      	0x2c8	// 2c8 <CMP_INPCRX_Config+0x1c>
		CMP->INPCR4&=0xfffff000;
 322:	1071      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 324:	1091      	lrw      	r4, 0xfff	// 368 <CMP_CR_Config+0x18>
 326:	9360      	ld.w      	r3, (r3, 0)
 328:	9312      	ld.w      	r0, (r3, 0x48)
 32a:	6811      	andn      	r0, r4
 32c:	b312      	st.w      	r0, (r3, 0x48)
		CMP->INPCR4|=CMPX_NSEL|(CMPX_PSEL<<8);
 32e:	4248      	lsli      	r2, r2, 8
 330:	9312      	ld.w      	r0, (r3, 0x48)
 332:	6c84      	or      	r2, r1
 334:	6c80      	or      	r2, r0
 336:	b352      	st.w      	r2, (r3, 0x48)
}
 338:	07c8      	br      	0x2c8	// 2c8 <CMP_INPCRX_Config+0x1c>

0000033a <CMPOutput_Read>:
//EntryParameter:CMPx_NUM
//ReturnValue:NONE
/*************************************************************/ 
void CMPOutput_Read(void)
{
	CMPOUTPUT_DATE=CMP->CR0&0XF0000000;
 33a:	106b      	lrw      	r3, 0	// 364 <CMP_CR_Config+0x14>
 33c:	104c      	lrw      	r2, 0	// 36c <CMP_CR_Config+0x1c>
 33e:	9360      	ld.w      	r3, (r3, 0)
 340:	9361      	ld.w      	r3, (r3, 0x4)
 342:	4b7c      	lsri      	r3, r3, 28
 344:	437c      	lsli      	r3, r3, 28
 346:	b260      	st.w      	r3, (r2, 0)
	CMPOUTPUT_DATE=CMPOUTPUT_DATE>>27;
 348:	9260      	ld.w      	r3, (r2, 0)
 34a:	4b7b      	lsri      	r3, r3, 27
 34c:	b260      	st.w      	r3, (r2, 0)
}
 34e:	783c      	rts

00000350 <CMP_CR_Config>:
//CPOS_X:CPOS_0,CPOS_1
//ReturnValue:NONE
/*************************************************************/ 
void CMP_CR_Config(CMPx_selecte_TypeDef CMPx_NUM , CMPx_NHYST_TypeDef NHYST_Xmv , CMPx_PHYST_TypeDef PHYST_Xmv , 
						CMPx_POLARITY_TypeDef POLARITY_X , CMPx_EVE_SEL_TypeDef EVE_SEL_X , CMPx_FLTEN_TypeDef X_FLTEN , CMPx_CPOS_TypeDef CPOS_X)
{
 350:	14c4      	push      	r4-r7
 352:	040f      	br      	0x370	// 370 <CMP_CR_Config+0x20>
	...
 368:	00000fff 	.long	0x00000fff
 36c:	00000000 	.long	0x00000000
 370:	1421      	subi      	sp, sp, 4
 372:	9885      	ld.w      	r4, (sp, 0x14)
	if(CMPx_NUM==CMP0_NUM)
 374:	3840      	cmpnei      	r0, 0
{
 376:	b880      	st.w      	r4, (sp, 0)
 378:	98a6      	ld.w      	r5, (sp, 0x18)
 37a:	9887      	ld.w      	r4, (sp, 0x1c)
	if(CMPx_NUM==CMP0_NUM)
 37c:	0812      	bt      	0x3a0	// 3a0 <CMP_CR_Config+0x50>
	{
		CMP->CR0&=0xffff7861;
 37e:	1217      	lrw      	r0, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 380:	12f7      	lrw      	r7, 0x879e	// 4dc <CMPX_FLTCR_Config+0xc>
 382:	9000      	ld.w      	r0, (r0, 0)
 384:	90c1      	ld.w      	r6, (r0, 0x4)
 386:	699d      	andn      	r6, r7
 388:	b0c1      	st.w      	r6, (r0, 0x4)
		CMP->CR0|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
 38a:	90c1      	ld.w      	r6, (r0, 0x4)
 38c:	6d18      	or      	r4, r6
 38e:	6d50      	or      	r5, r4
 390:	9880      	ld.w      	r4, (sp, 0)
 392:	6d50      	or      	r5, r4
 394:	6cd4      	or      	r3, r5
 396:	6c8c      	or      	r2, r3
 398:	6c48      	or      	r1, r2
 39a:	b021      	st.w      	r1, (r0, 0x4)
	else if(CMPx_NUM==CMP4_NUM)
	{
		CMP->CR4&=0xffff7861;
		CMP->CR4|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
	}
}
 39c:	1401      	addi      	sp, sp, 4
 39e:	1484      	pop      	r4-r7
	else if(CMPx_NUM==CMP1_NUM)
 3a0:	3841      	cmpnei      	r0, 1
 3a2:	0811      	bt      	0x3c4	// 3c4 <CMP_CR_Config+0x74>
		CMP->CR1&=0xffff7861;
 3a4:	120d      	lrw      	r0, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 3a6:	12ee      	lrw      	r7, 0x879e	// 4dc <CMPX_FLTCR_Config+0xc>
 3a8:	9000      	ld.w      	r0, (r0, 0)
 3aa:	90c2      	ld.w      	r6, (r0, 0x8)
 3ac:	699d      	andn      	r6, r7
 3ae:	b0c2      	st.w      	r6, (r0, 0x8)
		CMP->CR1|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
 3b0:	90c2      	ld.w      	r6, (r0, 0x8)
 3b2:	6d18      	or      	r4, r6
 3b4:	6d50      	or      	r5, r4
 3b6:	9880      	ld.w      	r4, (sp, 0)
 3b8:	6d50      	or      	r5, r4
 3ba:	6cd4      	or      	r3, r5
 3bc:	6c8c      	or      	r2, r3
 3be:	6c48      	or      	r1, r2
 3c0:	b022      	st.w      	r1, (r0, 0x8)
 3c2:	07ed      	br      	0x39c	// 39c <CMP_CR_Config+0x4c>
	else if(CMPx_NUM==CMP2_NUM)
 3c4:	3842      	cmpnei      	r0, 2
 3c6:	0811      	bt      	0x3e8	// 3e8 <CMP_CR_Config+0x98>
		CMP->CR2&=0xffff7861;
 3c8:	1204      	lrw      	r0, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 3ca:	12e5      	lrw      	r7, 0x879e	// 4dc <CMPX_FLTCR_Config+0xc>
 3cc:	9000      	ld.w      	r0, (r0, 0)
 3ce:	90c3      	ld.w      	r6, (r0, 0xc)
 3d0:	699d      	andn      	r6, r7
 3d2:	b0c3      	st.w      	r6, (r0, 0xc)
		CMP->CR2|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
 3d4:	90c3      	ld.w      	r6, (r0, 0xc)
 3d6:	6d18      	or      	r4, r6
 3d8:	6d50      	or      	r5, r4
 3da:	9880      	ld.w      	r4, (sp, 0)
 3dc:	6d50      	or      	r5, r4
 3de:	6cd4      	or      	r3, r5
 3e0:	6c8c      	or      	r2, r3
 3e2:	6c48      	or      	r1, r2
 3e4:	b023      	st.w      	r1, (r0, 0xc)
 3e6:	07db      	br      	0x39c	// 39c <CMP_CR_Config+0x4c>
	else if(CMPx_NUM==CMP3_NUM)
 3e8:	3843      	cmpnei      	r0, 3
 3ea:	0811      	bt      	0x40c	// 40c <CMP_CR_Config+0xbc>
		CMP->CR3&=0xffff7861;
 3ec:	111b      	lrw      	r0, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 3ee:	11fc      	lrw      	r7, 0x879e	// 4dc <CMPX_FLTCR_Config+0xc>
 3f0:	9000      	ld.w      	r0, (r0, 0)
 3f2:	90c4      	ld.w      	r6, (r0, 0x10)
 3f4:	699d      	andn      	r6, r7
 3f6:	b0c4      	st.w      	r6, (r0, 0x10)
		CMP->CR3|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
 3f8:	90c4      	ld.w      	r6, (r0, 0x10)
 3fa:	6d18      	or      	r4, r6
 3fc:	6d50      	or      	r5, r4
 3fe:	9880      	ld.w      	r4, (sp, 0)
 400:	6d50      	or      	r5, r4
 402:	6cd4      	or      	r3, r5
 404:	6c8c      	or      	r2, r3
 406:	6c48      	or      	r1, r2
 408:	b024      	st.w      	r1, (r0, 0x10)
 40a:	07c9      	br      	0x39c	// 39c <CMP_CR_Config+0x4c>
	else if(CMPx_NUM==CMP4_NUM)
 40c:	3844      	cmpnei      	r0, 4
 40e:	0bc7      	bt      	0x39c	// 39c <CMP_CR_Config+0x4c>
		CMP->CR4&=0xffff7861;
 410:	1112      	lrw      	r0, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 412:	11f3      	lrw      	r7, 0x879e	// 4dc <CMPX_FLTCR_Config+0xc>
 414:	9000      	ld.w      	r0, (r0, 0)
 416:	90c5      	ld.w      	r6, (r0, 0x14)
 418:	699d      	andn      	r6, r7
 41a:	b0c5      	st.w      	r6, (r0, 0x14)
		CMP->CR4|=NHYST_Xmv|PHYST_Xmv|POLARITY_X|EVE_SEL_X|X_FLTEN|CPOS_X;
 41c:	90c5      	ld.w      	r6, (r0, 0x14)
 41e:	6d18      	or      	r4, r6
 420:	6d50      	or      	r5, r4
 422:	9880      	ld.w      	r4, (sp, 0)
 424:	6d50      	or      	r5, r4
 426:	6cd4      	or      	r3, r5
 428:	6c8c      	or      	r2, r3
 42a:	6c48      	or      	r1, r2
 42c:	b025      	st.w      	r1, (r0, 0x14)
}
 42e:	07b7      	br      	0x39c	// 39c <CMP_CR_Config+0x4c>

00000430 <CMP_Open>:
//CMPx_selecte:CMP0_NUM,CMP1_NUM,CMP2_NUM,CMP3_NUM,CMP4_NUM
//ReturnValue:NONE
/*************************************************************/ 
void CMP_Open(CMPx_selecte_TypeDef CMPx_selecte)
{
	if(CMPx_selecte==CMP0_NUM)
 430:	3840      	cmpnei      	r0, 0
 432:	0807      	bt      	0x440	// 440 <CMP_Open+0x10>
	{
		CMP->CR0|=0x01;									//比较器0打开
 434:	1169      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 436:	9340      	ld.w      	r2, (r3, 0)
 438:	9261      	ld.w      	r3, (r2, 0x4)
 43a:	3ba0      	bseti      	r3, r3, 0
 43c:	b261      	st.w      	r3, (r2, 0x4)
	}
	else if(CMPx_selecte==CMP4_NUM)
	{
		CMP->CR4|=0x01;									//比较器4打开
	}
}
 43e:	783c      	rts
	else if(CMPx_selecte==CMP1_NUM)
 440:	3841      	cmpnei      	r0, 1
 442:	0807      	bt      	0x450	// 450 <CMP_Open+0x20>
		CMP->CR1|=0x01;									//比较器1打开
 444:	1165      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 446:	9340      	ld.w      	r2, (r3, 0)
 448:	9262      	ld.w      	r3, (r2, 0x8)
 44a:	6c0c      	or      	r0, r3
 44c:	b202      	st.w      	r0, (r2, 0x8)
 44e:	07f8      	br      	0x43e	// 43e <CMP_Open+0xe>
	else if(CMPx_selecte==CMP2_NUM)
 450:	3842      	cmpnei      	r0, 2
 452:	0807      	bt      	0x460	// 460 <CMP_Open+0x30>
		CMP->CR2|=0x01;									//比较器2打开
 454:	1161      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 456:	9340      	ld.w      	r2, (r3, 0)
 458:	9263      	ld.w      	r3, (r2, 0xc)
 45a:	3ba0      	bseti      	r3, r3, 0
 45c:	b263      	st.w      	r3, (r2, 0xc)
 45e:	07f0      	br      	0x43e	// 43e <CMP_Open+0xe>
	else if(CMPx_selecte==CMP3_NUM)
 460:	3843      	cmpnei      	r0, 3
 462:	0807      	bt      	0x470	// 470 <CMP_Open+0x40>
		CMP->CR3|=0x01;									//比较器3打开
 464:	107d      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 466:	9340      	ld.w      	r2, (r3, 0)
 468:	9264      	ld.w      	r3, (r2, 0x10)
 46a:	3ba0      	bseti      	r3, r3, 0
 46c:	b264      	st.w      	r3, (r2, 0x10)
 46e:	07e8      	br      	0x43e	// 43e <CMP_Open+0xe>
	else if(CMPx_selecte==CMP4_NUM)
 470:	3844      	cmpnei      	r0, 4
 472:	0be6      	bt      	0x43e	// 43e <CMP_Open+0xe>
		CMP->CR4|=0x01;									//比较器4打开
 474:	1079      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 476:	9340      	ld.w      	r2, (r3, 0)
 478:	9265      	ld.w      	r3, (r2, 0x14)
 47a:	3ba0      	bseti      	r3, r3, 0
 47c:	b265      	st.w      	r3, (r2, 0x14)
}
 47e:	07e0      	br      	0x43e	// 43e <CMP_Open+0xe>

00000480 <CMP_Close>:
//CMPx_selecte:CMP0_NUM,CMP1_NUM,CMP2_NUM,CMP3_NUM,CMP4_NUM
//ReturnValue:NONE
/*************************************************************/ 
void CMP_Close(CMPx_selecte_TypeDef CMPx_selecte)
{
	if(CMPx_selecte==CMP0_NUM)
 480:	3840      	cmpnei      	r0, 0
 482:	0807      	bt      	0x490	// 490 <CMP_Close+0x10>
	{
		CMP->CR0&=0xfffffffe;									//比较器0关闭
 484:	1075      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 486:	9340      	ld.w      	r2, (r3, 0)
 488:	9261      	ld.w      	r3, (r2, 0x4)
 48a:	3b80      	bclri      	r3, r3, 0
 48c:	b261      	st.w      	r3, (r2, 0x4)
	}
	else if(CMPx_selecte==CMP4_NUM)
	{
		CMP->CR4&=0xfffffffe;									//比较器4关闭
	}
}
 48e:	783c      	rts
	else if(CMPx_selecte==CMP1_NUM)
 490:	3841      	cmpnei      	r0, 1
 492:	0807      	bt      	0x4a0	// 4a0 <CMP_Close+0x20>
		CMP->CR1&=0xfffffffe;									//比较器1关闭
 494:	1071      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 496:	9340      	ld.w      	r2, (r3, 0)
 498:	9262      	ld.w      	r3, (r2, 0x8)
 49a:	3b80      	bclri      	r3, r3, 0
 49c:	b262      	st.w      	r3, (r2, 0x8)
 49e:	07f8      	br      	0x48e	// 48e <CMP_Close+0xe>
	else if(CMPx_selecte==CMP2_NUM)
 4a0:	3842      	cmpnei      	r0, 2
 4a2:	0807      	bt      	0x4b0	// 4b0 <CMP_Close+0x30>
		CMP->CR2&=0xfffffffe;									//比较器2关闭
 4a4:	106d      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 4a6:	9340      	ld.w      	r2, (r3, 0)
 4a8:	9263      	ld.w      	r3, (r2, 0xc)
 4aa:	3b80      	bclri      	r3, r3, 0
 4ac:	b263      	st.w      	r3, (r2, 0xc)
 4ae:	07f0      	br      	0x48e	// 48e <CMP_Close+0xe>
	else if(CMPx_selecte==CMP3_NUM)
 4b0:	3843      	cmpnei      	r0, 3
 4b2:	0807      	bt      	0x4c0	// 4c0 <CMP_Close+0x40>
		CMP->CR3&=0xfffffffe;									//比较器3关闭
 4b4:	1069      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 4b6:	9340      	ld.w      	r2, (r3, 0)
 4b8:	9264      	ld.w      	r3, (r2, 0x10)
 4ba:	3b80      	bclri      	r3, r3, 0
 4bc:	b264      	st.w      	r3, (r2, 0x10)
 4be:	07e8      	br      	0x48e	// 48e <CMP_Close+0xe>
	else if(CMPx_selecte==CMP4_NUM)
 4c0:	3844      	cmpnei      	r0, 4
 4c2:	0be6      	bt      	0x48e	// 48e <CMP_Close+0xe>
		CMP->CR4&=0xfffffffe;									//比较器4关闭
 4c4:	1065      	lrw      	r3, 0	// 4d8 <CMPX_FLTCR_Config+0x8>
 4c6:	9340      	ld.w      	r2, (r3, 0)
 4c8:	9265      	ld.w      	r3, (r2, 0x14)
 4ca:	3b80      	bclri      	r3, r3, 0
 4cc:	b265      	st.w      	r3, (r2, 0x14)
}
 4ce:	07e0      	br      	0x48e	// 48e <CMP_Close+0xe>

000004d0 <CMPX_FLTCR_Config>:
//CMPX_DIVM:0~255
//ReturnValue:NONE
/*************************************************************/ 
//FLT_CK = PCLK/(CMPX_DIVM+1)/2^CMPX_DIVN
void CMPX_FLTCR_Config(CMPx_selecte_TypeDef CMPx_NUM , CMPX_CLK_Selecte_TypeDef CMPX_CLK_Selecte_x , U8_T CMPX_DIVN , U8_T CMPX_DIVM)
{
 4d0:	14c1      	push      	r4
	if(CMPx_NUM==CMP0_NUM)
 4d2:	3840      	cmpnei      	r0, 0
 4d4:	0814      	bt      	0x4fc	// 4fc <CMPX_FLTCR_Config+0x2c>
 4d6:	0405      	br      	0x4e0	// 4e0 <CMPX_FLTCR_Config+0x10>
 4d8:	00000000 	.long	0x00000000
 4dc:	0000879e 	.long	0x0000879e
	{
		CMP->FLTCR0&=0xffff0000;
 4e0:	121b      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
		CMP->FLTCR0|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 4e2:	4368      	lsli      	r3, r3, 8
		CMP->FLTCR0&=0xffff0000;
 4e4:	9080      	ld.w      	r4, (r0, 0)
 4e6:	9406      	ld.w      	r0, (r4, 0x18)
 4e8:	4810      	lsri      	r0, r0, 16
 4ea:	4010      	lsli      	r0, r0, 16
 4ec:	b406      	st.w      	r0, (r4, 0x18)
		CMP->FLTCR0|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 4ee:	9406      	ld.w      	r0, (r4, 0x18)
 4f0:	6c40      	or      	r1, r0
 4f2:	6c4c      	or      	r1, r3
 4f4:	4243      	lsli      	r2, r2, 3
 4f6:	6c84      	or      	r2, r1
 4f8:	b446      	st.w      	r2, (r4, 0x18)
	else if(CMPx_NUM==CMP4_NUM)
	{
		CMP->FLTCR4&=0xffff0000;
		CMP->FLTCR4|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
	}
}
 4fa:	1481      	pop      	r4
	else if(CMPx_NUM==CMP1_NUM)
 4fc:	3841      	cmpnei      	r0, 1
 4fe:	080f      	bt      	0x51c	// 51c <CMPX_FLTCR_Config+0x4c>
		CMP->FLTCR1&=0xffff0000;
 500:	1213      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
		CMP->FLTCR1|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 502:	4368      	lsli      	r3, r3, 8
		CMP->FLTCR1&=0xffff0000;
 504:	9080      	ld.w      	r4, (r0, 0)
 506:	9407      	ld.w      	r0, (r4, 0x1c)
 508:	4810      	lsri      	r0, r0, 16
 50a:	4010      	lsli      	r0, r0, 16
 50c:	b407      	st.w      	r0, (r4, 0x1c)
		CMP->FLTCR1|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 50e:	9407      	ld.w      	r0, (r4, 0x1c)
 510:	6c40      	or      	r1, r0
 512:	6c4c      	or      	r1, r3
 514:	4243      	lsli      	r2, r2, 3
 516:	6c84      	or      	r2, r1
 518:	b447      	st.w      	r2, (r4, 0x1c)
 51a:	07f0      	br      	0x4fa	// 4fa <CMPX_FLTCR_Config+0x2a>
	else if(CMPx_NUM==CMP2_NUM)
 51c:	3842      	cmpnei      	r0, 2
 51e:	080f      	bt      	0x53c	// 53c <CMPX_FLTCR_Config+0x6c>
		CMP->FLTCR2&=0xffff0000;
 520:	120b      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
		CMP->FLTCR2|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 522:	4368      	lsli      	r3, r3, 8
		CMP->FLTCR2&=0xffff0000;
 524:	9080      	ld.w      	r4, (r0, 0)
 526:	9408      	ld.w      	r0, (r4, 0x20)
 528:	4810      	lsri      	r0, r0, 16
 52a:	4010      	lsli      	r0, r0, 16
 52c:	b408      	st.w      	r0, (r4, 0x20)
		CMP->FLTCR2|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 52e:	9408      	ld.w      	r0, (r4, 0x20)
 530:	6c40      	or      	r1, r0
 532:	6c4c      	or      	r1, r3
 534:	4243      	lsli      	r2, r2, 3
 536:	6c84      	or      	r2, r1
 538:	b448      	st.w      	r2, (r4, 0x20)
 53a:	07e0      	br      	0x4fa	// 4fa <CMPX_FLTCR_Config+0x2a>
	else if(CMPx_NUM==CMP3_NUM)
 53c:	3843      	cmpnei      	r0, 3
 53e:	080f      	bt      	0x55c	// 55c <CMPX_FLTCR_Config+0x8c>
		CMP->FLTCR3&=0xffff0000;
 540:	1203      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
		CMP->FLTCR3|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 542:	4368      	lsli      	r3, r3, 8
		CMP->FLTCR3&=0xffff0000;
 544:	9080      	ld.w      	r4, (r0, 0)
 546:	9409      	ld.w      	r0, (r4, 0x24)
 548:	4810      	lsri      	r0, r0, 16
 54a:	4010      	lsli      	r0, r0, 16
 54c:	b409      	st.w      	r0, (r4, 0x24)
		CMP->FLTCR3|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 54e:	9409      	ld.w      	r0, (r4, 0x24)
 550:	6c40      	or      	r1, r0
 552:	6c4c      	or      	r1, r3
 554:	4243      	lsli      	r2, r2, 3
 556:	6c84      	or      	r2, r1
 558:	b449      	st.w      	r2, (r4, 0x24)
 55a:	07d0      	br      	0x4fa	// 4fa <CMPX_FLTCR_Config+0x2a>
	else if(CMPx_NUM==CMP4_NUM)
 55c:	3844      	cmpnei      	r0, 4
 55e:	0bce      	bt      	0x4fa	// 4fa <CMPX_FLTCR_Config+0x2a>
		CMP->FLTCR4&=0xffff0000;
 560:	111b      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
		CMP->FLTCR4|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 562:	4368      	lsli      	r3, r3, 8
		CMP->FLTCR4&=0xffff0000;
 564:	9000      	ld.w      	r0, (r0, 0)
 566:	908a      	ld.w      	r4, (r0, 0x28)
 568:	4c90      	lsri      	r4, r4, 16
 56a:	4490      	lsli      	r4, r4, 16
 56c:	b08a      	st.w      	r4, (r0, 0x28)
		CMP->FLTCR4|=CMPX_CLK_Selecte_x|(CMPX_DIVN<<3)|(CMPX_DIVM<<8);
 56e:	908a      	ld.w      	r4, (r0, 0x28)
 570:	6c50      	or      	r1, r4
 572:	6cc4      	or      	r3, r1
 574:	4243      	lsli      	r2, r2, 3
 576:	6cc8      	or      	r3, r2
 578:	b06a      	st.w      	r3, (r0, 0x28)
}
 57a:	07c0      	br      	0x4fa	// 4fa <CMPX_FLTCR_Config+0x2a>

0000057c <CMP_WCNT_Config>:
/*************************************************************/  
//捕捉宽度时间:(CMP_WCNT+1)*PCLK/CLKDIV
//延时宽度时间:(CMP_DCNT+1)*PCLK/CLKDIV,如果CMP_DCNT=0，延时时间=0
void CMP_WCNT_Config(CMPx_selecte_TypeDef CMPx_NUM , CMPX_First_output_startue_TypeDef HLS_X , CMPX_Trgsel_selecte_TypeDef CMPX_Trgsel_X , 
				     CMPX_MSKMOD_Control_TypeDef CMPX_MSKMOD_X , CMPX_CLKDIV_TypeDef CMPX_CLKDIV_X , U8_T CMP_DCNT , U16_T CMP_WCNT)
{
 57c:	14c4      	push      	r4-r7
	if(CMPx_NUM==CMP2_NUM)
 57e:	3842      	cmpnei      	r0, 2
{
 580:	98c4      	ld.w      	r6, (sp, 0x10)
 582:	d8ae0014 	ld.b      	r5, (sp, 0x14)
 586:	d88e100c 	ld.h      	r4, (sp, 0x18)
	if(CMPx_NUM==CMP2_NUM)
 58a:	080f      	bt      	0x5a8	// 5a8 <CMP_WCNT_Config+0x2c>
	{
		CMP->WCNT0&=0x0;
 58c:	1110      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
 58e:	9000      	ld.w      	r0, (r0, 0)
 590:	90eb      	ld.w      	r7, (r0, 0x2c)
 592:	3700      	movi      	r7, 0
 594:	b0eb      	st.w      	r7, (r0, 0x2c)
		CMP->WCNT0|=HLS_X|CMPX_Trgsel_X|CMPX_MSKMOD_X|CMPX_CLKDIV_X|CMP_DCNT|CMP_WCNT;
 596:	90eb      	ld.w      	r7, (r0, 0x2c)
 598:	6d1c      	or      	r4, r7
 59a:	6d18      	or      	r4, r6
 59c:	6d14      	or      	r4, r5
 59e:	6cd0      	or      	r3, r4
 5a0:	6c8c      	or      	r2, r3
 5a2:	6c48      	or      	r1, r2
 5a4:	b02b      	st.w      	r1, (r0, 0x2c)
	else if(CMPx_NUM==CMP4_NUM)
	{
		CMP->WCNT2=0x0;
		CMP->WCNT2|=HLS_X|CMPX_Trgsel_X|CMPX_MSKMOD_X|CMPX_CLKDIV_X|CMP_DCNT|CMP_WCNT;
	}
}
 5a6:	1484      	pop      	r4-r7
	else if(CMPx_NUM==CMP3_NUM)
 5a8:	3843      	cmpnei      	r0, 3
 5aa:	080f      	bt      	0x5c8	// 5c8 <CMP_WCNT_Config+0x4c>
		CMP->WCNT1&=0x0;
 5ac:	1108      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
 5ae:	9000      	ld.w      	r0, (r0, 0)
 5b0:	90ec      	ld.w      	r7, (r0, 0x30)
 5b2:	3700      	movi      	r7, 0
 5b4:	b0ec      	st.w      	r7, (r0, 0x30)
		CMP->WCNT1|=HLS_X|CMPX_Trgsel_X|CMPX_MSKMOD_X|CMPX_CLKDIV_X|CMP_DCNT|CMP_WCNT;
 5b6:	90ec      	ld.w      	r7, (r0, 0x30)
 5b8:	6d1c      	or      	r4, r7
 5ba:	6d18      	or      	r4, r6
 5bc:	6d14      	or      	r4, r5
 5be:	6cd0      	or      	r3, r4
 5c0:	6c8c      	or      	r2, r3
 5c2:	6c48      	or      	r1, r2
 5c4:	b02c      	st.w      	r1, (r0, 0x30)
 5c6:	07f0      	br      	0x5a6	// 5a6 <CMP_WCNT_Config+0x2a>
	else if(CMPx_NUM==CMP4_NUM)
 5c8:	3844      	cmpnei      	r0, 4
 5ca:	0bee      	bt      	0x5a6	// 5a6 <CMP_WCNT_Config+0x2a>
		CMP->WCNT2=0x0;
 5cc:	1100      	lrw      	r0, 0	// 64c <CMP_TRGCR_Config+0x66>
 5ce:	3700      	movi      	r7, 0
 5d0:	9000      	ld.w      	r0, (r0, 0)
 5d2:	b0ed      	st.w      	r7, (r0, 0x34)
		CMP->WCNT2|=HLS_X|CMPX_Trgsel_X|CMPX_MSKMOD_X|CMPX_CLKDIV_X|CMP_DCNT|CMP_WCNT;
 5d4:	90ed      	ld.w      	r7, (r0, 0x34)
 5d6:	6d1c      	or      	r4, r7
 5d8:	6d18      	or      	r4, r6
 5da:	6d14      	or      	r4, r5
 5dc:	6cd0      	or      	r3, r4
 5de:	6c8c      	or      	r2, r3
 5e0:	6c48      	or      	r1, r2
 5e2:	b02d      	st.w      	r1, (r0, 0x34)
}
 5e4:	07e1      	br      	0x5a6	// 5a6 <CMP_WCNT_Config+0x2a>

000005e6 <CMP_TRGCR_Config>:
//CMP_TC_CIN_X:CMP_TC_CIN_Enable,CMP_TC_CIN_Disable
//CMP_AD_TRG_X:CMP_AD_TRG_Enable,CMP_AD_TRG2_Disable
//ReturnValue:NONE
/*************************************************************/  
void CMP_TRGCR_Config(CMPx_selecte_TypeDef CMPx_NUM , CMP_TC_TRG_TypeDef CMP_TC_TRG_X , CMP_TC_CIN_CMD_TypeDef CMP_TC_CIN_X , CMP_AD_TRG_CMD_TypeDef CMP_AD_TRG_X)
{
 5e6:	14c3      	push      	r4-r6
	CMP->TRGCR&=0xfffffff8;
 5e8:	1099      	lrw      	r4, 0	// 64c <CMP_TRGCR_Config+0x66>
 5ea:	3607      	movi      	r6, 7
 5ec:	9480      	ld.w      	r4, (r4, 0)
 5ee:	94b3      	ld.w      	r5, (r4, 0x4c)
 5f0:	6959      	andn      	r5, r6
 5f2:	b4b3      	st.w      	r5, (r4, 0x4c)
	CMP->TRGCR|=CMP_TC_TRG_X;										//TC1启动触发
 5f4:	94b3      	ld.w      	r5, (r4, 0x4c)
 5f6:	6c54      	or      	r1, r5
	if(CMPx_NUM==CMP0_NUM)
 5f8:	3840      	cmpnei      	r0, 0
	CMP->TRGCR|=CMP_TC_TRG_X;										//TC1启动触发
 5fa:	b433      	st.w      	r1, (r4, 0x4c)
	if(CMPx_NUM==CMP0_NUM)
 5fc:	080e      	bt      	0x618	// 618 <CMP_TRGCR_Config+0x32>
	{
		CMP->TRGCR&=0xfffffef7;
 5fe:	9433      	ld.w      	r1, (r4, 0x4c)
 600:	3983      	bclri      	r1, r1, 3
 602:	3988      	bclri      	r1, r1, 8
 604:	b433      	st.w      	r1, (r4, 0x4c)
		CMP->TRGCR|=CMP_TC_CIN_X<<3;								//CMP0输出作为TC1的Capture/CLK输入
 606:	9433      	ld.w      	r1, (r4, 0x4c)
 608:	4243      	lsli      	r2, r2, 3
 60a:	6c84      	or      	r2, r1
 60c:	b453      	st.w      	r2, (r4, 0x4c)
		CMP->TRGCR|=CMP_AD_TRG_X<<8;								//CMP0启动ADC触发
 60e:	9453      	ld.w      	r2, (r4, 0x4c)
 610:	4368      	lsli      	r3, r3, 8
	}
	else if(CMPx_NUM==CMP4_NUM)
	{
		CMP->TRGCR&=0xffffef7f;
		CMP->TRGCR|=CMP_TC_CIN_X<<7;								//CMP4输出作为TC1的Capture/CLK输入
		CMP->TRGCR|=CMP_AD_TRG_X<<12;								//CMP4启动ADC触发
 612:	6cc8      	or      	r3, r2
 614:	b473      	st.w      	r3, (r4, 0x4c)
	}
}
 616:	1483      	pop      	r4-r6
	else if(CMPx_NUM==CMP1_NUM)
 618:	3841      	cmpnei      	r0, 1
 61a:	080c      	bt      	0x632	// 632 <CMP_TRGCR_Config+0x4c>
		CMP->TRGCR&=0xfffffdef;
 61c:	9433      	ld.w      	r1, (r4, 0x4c)
 61e:	3984      	bclri      	r1, r1, 4
 620:	3989      	bclri      	r1, r1, 9
 622:	b433      	st.w      	r1, (r4, 0x4c)
		CMP->TRGCR|=CMP_TC_CIN_X<<4;								//CMP1输出作为TC1的Capture/CLK输入
 624:	9433      	ld.w      	r1, (r4, 0x4c)
 626:	4244      	lsli      	r2, r2, 4
 628:	6c84      	or      	r2, r1
 62a:	b453      	st.w      	r2, (r4, 0x4c)
		CMP->TRGCR|=CMP_AD_TRG_X<<9;								//CMP1启动ADC触发
 62c:	9453      	ld.w      	r2, (r4, 0x4c)
 62e:	4369      	lsli      	r3, r3, 9
 630:	07f1      	br      	0x612	// 612 <CMP_TRGCR_Config+0x2c>
	else if(CMPx_NUM==CMP2_NUM)
 632:	3842      	cmpnei      	r0, 2
 634:	080e      	bt      	0x650	// 650 <CMP_TRGCR_Config+0x6a>
		CMP->TRGCR&=0xfffffbdf;
 636:	9433      	ld.w      	r1, (r4, 0x4c)
 638:	3985      	bclri      	r1, r1, 5
 63a:	398a      	bclri      	r1, r1, 10
 63c:	b433      	st.w      	r1, (r4, 0x4c)
		CMP->TRGCR|=CMP_TC_CIN_X<<5;								//CMP2输出作为TC1的Capture/CLK输入
 63e:	9433      	ld.w      	r1, (r4, 0x4c)
 640:	4245      	lsli      	r2, r2, 5
 642:	6c84      	or      	r2, r1
 644:	b453      	st.w      	r2, (r4, 0x4c)
		CMP->TRGCR|=CMP_AD_TRG_X<<10;								//CMP2启动ADC触发
 646:	9453      	ld.w      	r2, (r4, 0x4c)
 648:	436a      	lsli      	r3, r3, 10
 64a:	07e4      	br      	0x612	// 612 <CMP_TRGCR_Config+0x2c>
 64c:	00000000 	.long	0x00000000
	else if(CMPx_NUM==CMP3_NUM)
 650:	3843      	cmpnei      	r0, 3
 652:	080c      	bt      	0x66a	// 66a <CMP_TRGCR_Config+0x84>
		CMP->TRGCR&=0xfffff7bf;
 654:	9433      	ld.w      	r1, (r4, 0x4c)
 656:	3986      	bclri      	r1, r1, 6
 658:	398b      	bclri      	r1, r1, 11
 65a:	b433      	st.w      	r1, (r4, 0x4c)
		CMP->TRGCR|=CMP_TC_CIN_X<<6;								//CMP3输出作为TC1的Capture/CLK输入
 65c:	9433      	ld.w      	r1, (r4, 0x4c)
 65e:	4246      	lsli      	r2, r2, 6
 660:	6c84      	or      	r2, r1
 662:	b453      	st.w      	r2, (r4, 0x4c)
		CMP->TRGCR|=CMP_AD_TRG_X<<11;								//CMP3启动ADC触发
 664:	9453      	ld.w      	r2, (r4, 0x4c)
 666:	436b      	lsli      	r3, r3, 11
 668:	07d5      	br      	0x612	// 612 <CMP_TRGCR_Config+0x2c>
	else if(CMPx_NUM==CMP4_NUM)
 66a:	3844      	cmpnei      	r0, 4
 66c:	0bd5      	bt      	0x616	// 616 <CMP_TRGCR_Config+0x30>
		CMP->TRGCR&=0xffffef7f;
 66e:	9433      	ld.w      	r1, (r4, 0x4c)
 670:	3987      	bclri      	r1, r1, 7
 672:	398c      	bclri      	r1, r1, 12
 674:	b433      	st.w      	r1, (r4, 0x4c)
		CMP->TRGCR|=CMP_TC_CIN_X<<7;								//CMP4输出作为TC1的Capture/CLK输入
 676:	9433      	ld.w      	r1, (r4, 0x4c)
 678:	4247      	lsli      	r2, r2, 7
 67a:	6c84      	or      	r2, r1
 67c:	b453      	st.w      	r2, (r4, 0x4c)
		CMP->TRGCR|=CMP_AD_TRG_X<<12;								//CMP4启动ADC触发
 67e:	9453      	ld.w      	r2, (r4, 0x4c)
 680:	436c      	lsli      	r3, r3, 12
 682:	07c8      	br      	0x612	// 612 <CMP_TRGCR_Config+0x2c>

00000684 <CMP_ConfigInterrupt_CMD>:
//NewState:ENABLE,DISABLE
//ReturnValue:NONE
/*************************************************************/
void CMP_ConfigInterrupt_CMD(CMP_INT_TypeDef CMP_INT_X , FunctionalStatus NewState)
{
	if (NewState != DISABLE)
 684:	3940      	cmpnei      	r1, 0
 686:	1167      	lrw      	r3, 0	// 720 <CMP1_Wakeup_Disable+0x12>
 688:	0c06      	bf      	0x694	// 694 <CMP_ConfigInterrupt_CMD+0x10>
	{
		CMP->IMCR  |= CMP_INT_X;						//SET
 68a:	9340      	ld.w      	r2, (r3, 0)
 68c:	9274      	ld.w      	r3, (r2, 0x50)
 68e:	6c0c      	or      	r0, r3
 690:	b214      	st.w      	r0, (r2, 0x50)
	}
	else
	{
		CMP->IMCR  &= ~CMP_INT_X;						//CLR
	}
}
 692:	783c      	rts
		CMP->IMCR  &= ~CMP_INT_X;						//CLR
 694:	9360      	ld.w      	r3, (r3, 0)
 696:	9354      	ld.w      	r2, (r3, 0x50)
 698:	6c02      	nor      	r0, r0
 69a:	6808      	and      	r0, r2
 69c:	b314      	st.w      	r0, (r3, 0x50)
}
 69e:	07fa      	br      	0x692	// 692 <CMP_ConfigInterrupt_CMD+0xe>

000006a0 <CMP0_Int_Enable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP0_Int_Enable(void)
{
    INTC_ISER_WRITE(CMP0_INT);    
 6a0:	1161      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6a2:	3280      	movi      	r2, 128
 6a4:	9360      	ld.w      	r3, (r3, 0)
 6a6:	23ff      	addi      	r3, 256
 6a8:	4255      	lsli      	r2, r2, 21
 6aa:	b340      	st.w      	r2, (r3, 0)
}
 6ac:	783c      	rts

000006ae <CMP0_Int_Disable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP0_Int_Disable(void)
{
    INTC_ICER_WRITE(CMP0_INT);    
 6ae:	107e      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6b0:	32c0      	movi      	r2, 192
 6b2:	9360      	ld.w      	r3, (r3, 0)
 6b4:	4241      	lsli      	r2, r2, 1
 6b6:	60c8      	addu      	r3, r2
 6b8:	3280      	movi      	r2, 128
 6ba:	4255      	lsli      	r2, r2, 21
 6bc:	b340      	st.w      	r2, (r3, 0)
}
 6be:	783c      	rts

000006c0 <CMP0_Wakeup_Enable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP0_Wakeup_Enable(void)
{
    INTC_IWER_WRITE(CMP0_INT);    
 6c0:	1079      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6c2:	3280      	movi      	r2, 128
 6c4:	9360      	ld.w      	r3, (r3, 0)
 6c6:	23ff      	addi      	r3, 256
 6c8:	4255      	lsli      	r2, r2, 21
 6ca:	b350      	st.w      	r2, (r3, 0x40)
}
 6cc:	783c      	rts

000006ce <CMP0_Wakeup_Disable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP0_Wakeup_Disable(void)
{
    INTC_IWDR_WRITE(CMP0_INT);    
 6ce:	1076      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6d0:	32e0      	movi      	r2, 224
 6d2:	9360      	ld.w      	r3, (r3, 0)
 6d4:	4241      	lsli      	r2, r2, 1
 6d6:	60c8      	addu      	r3, r2
 6d8:	3280      	movi      	r2, 128
 6da:	4255      	lsli      	r2, r2, 21
 6dc:	b340      	st.w      	r2, (r3, 0)
}
 6de:	783c      	rts

000006e0 <CMP1_Int_Enable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP1_Int_Enable(void)
{
    INTC_ISER_WRITE(CMP1_INT);    
 6e0:	1071      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6e2:	3280      	movi      	r2, 128
 6e4:	9360      	ld.w      	r3, (r3, 0)
 6e6:	23ff      	addi      	r3, 256
 6e8:	4256      	lsli      	r2, r2, 22
 6ea:	b340      	st.w      	r2, (r3, 0)
}
 6ec:	783c      	rts

000006ee <CMP1_Int_Disable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP1_Int_Disable(void)
{
    INTC_ICER_WRITE(CMP1_INT);    
 6ee:	106e      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 6f0:	32c0      	movi      	r2, 192
 6f2:	9360      	ld.w      	r3, (r3, 0)
 6f4:	4241      	lsli      	r2, r2, 1
 6f6:	60c8      	addu      	r3, r2
 6f8:	3280      	movi      	r2, 128
 6fa:	4256      	lsli      	r2, r2, 22
 6fc:	b340      	st.w      	r2, (r3, 0)
}
 6fe:	783c      	rts

00000700 <CMP1_Wakeup_Enable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP1_Wakeup_Enable(void)
{
    INTC_IWER_WRITE(CMP1_INT);    
 700:	1069      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 702:	3280      	movi      	r2, 128
 704:	9360      	ld.w      	r3, (r3, 0)
 706:	23ff      	addi      	r3, 256
 708:	4256      	lsli      	r2, r2, 22
 70a:	b350      	st.w      	r2, (r3, 0x40)
}
 70c:	783c      	rts

0000070e <CMP1_Wakeup_Disable>:
//EntryParameter:NONE
//ReturnValue:NONE
/*************************************************************/
void CMP1_Wakeup_Disable(void)
{
    INTC_IWDR_WRITE(CMP1_INT);    
 70e:	1066      	lrw      	r3, 0	// 724 <CMP1_Wakeup_Disable+0x16>
 710:	32e0      	movi      	r2, 224
 712:	9360      	ld.w      	r3, (r3, 0)
 714:	4241      	lsli      	r2, r2, 1
 716:	60c8      	addu      	r3, r2
 718:	3280      	movi      	r2, 128
 71a:	4256      	lsli      	r2, r2, 22
 71c:	b340      	st.w      	r2, (r3, 0)
}
 71e:	783c      	rts
	...
